package com.jr.entity;

import java.io.Serializable;

/**
 * @Function：用户实体类,用作登录
 * @Author 梁明哲
 * @Email 424577090@qq.com
 * @Package com.jr.entity
 * @Project InvoiceManage
 * @Date 2023-02-18 21:59:39
 */
public class User implements Serializable {
    private static final long serialVersionUID = 9192267992545631272L;
    private int id;
   private String name;
   private Integer enterpriseId;
   private String phone;
   private String account;
   private String password;
   private String idCardName;
   private String idCardNo;

    public User() {
    }

    public User(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdCardName() {
        return idCardName;
    }

    public void setIdCardName(String idCardName) {
        this.idCardName = idCardName;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", enterpriseId='" + enterpriseId + '\'' +
                ", phone='" + phone + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", idCardName='" + idCardName + '\'' +
                ", idCardNo='" + idCardNo + '\'' +
                '}';
    }
}







